package de.iceboy.android.goldrush.data;

import java.util.ArrayList;

public class AbstractSubject<ListenerClass> {
	
	protected ArrayList<ListenerClass> listenerList;
	
	public AbstractSubject(){
		listenerList = new ArrayList<ListenerClass>();
	}
	public void listen(ListenerClass listener){
		listenerList.add(listener);
	}
	public void unlisten(ListenerClass listener){
		listenerList.remove(listener);
	}
	
}
